package com.hk.service;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.User;



public interface IUser {

	public User findById(long id);

	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Long add(User u);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public void delete(User u);

	/**
	 * 更新
	 * 
	 * @param b
	 */
	public void update(User u);

	public List<User> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<User> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);
}
